/*
 * Copyright (c) 2020-2022 Jinsp-tech. All rights reserved.
 */

package com.jinsp.networklibrary.bean;

import com.google.gson.annotations.SerializedName;

/**
 * Created by luoshuai on 1/13/22
 * <p>
 * TCP网络数据基类
 */
public class TCPBaseDataBean<T> {

    @SerializedName("state")
    private int state;              //状态标识
    @SerializedName("code")
    private int commandNumber;      //命令号
    @SerializedName("data")
    private T data;                 //数据

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getCommandNumber() {
        return commandNumber;
    }

    public void setCommandNumber(int commandNumber) {
        this.commandNumber = commandNumber;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "TCPBaseDataBean{" +
                "state=" + state +
                ", commandNumber=" + commandNumber +
                ", data=" + data +
                '}';
    }
}
